import request from '@/utils/request'
// 查询VIEW列表
export function listInfo(query) {
    return request({
        url: '/system/cou_info/list',
        method: 'get',
        params: query
    })
}

// 查询VIEW详细
export function getInfo(name) {
    return request({
        url: '/system/cou_info/' + name,
        method: 'get'
    })
}

// 新增VIEW
export function addInfo(data) {
    return request({
        url: '/system/cou_info',
        method: 'post',
        data: data
    })
}

// 修改VIEW
export function updateInfo(data) {
    return request({
        url: '/system/cou_info',
        method: 'put',
        data: data
    })
}

// 删除VIEW
export function delInfo(name) {
    return request({
        url: '/system/cou_info/' + name,
        method: 'delete'
    })
}

//
export function importTemplate() {
  return request({
    url: '/system/cou_info/importTemplate',
    method: 'get'
  })
}
